#!/usr/bin/env bash
export ROOT_DIR=$(cd $(dirname ${BASH_SOURCE}) && pwd)
os_type=$(uname | tr 'A-Z' 'a-z')
case $os_type in
    linux*)
        py_cmd=python3
        ;;
    mingw*|msys*)
        if command -v winpty &> /dev/null; then
            py_cmd="winpty python"
        else
            py_cmd=python
        fi
        ;;
    *)
        py_cmd=python3
        ;;
esac
alias prj='$py_cmd $ROOT_DIR/scripts/prj.py'
